﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main.aspx.cs" Inherits="DreamCMS.Web.Admin.main" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="css/style.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="framebox">
            <div class="product">
                <table class="producttable">
                    <tr>
                        <td>产品名称：<span>DreamCMS</span></td>
                        <td>产品版本：<span><%=DreamCMS.BLL.SiteSettingManager.GetSiteSettingInfo().Version %></span></td>
                        <td>产品作者：<span><a href="http://www.cuiyongjian.com" target="_blank">崔永键</a></span></td>
                    </tr>
                    <tr>
                        <td>产品协议：<span><a href="https://dreamcms.codeplex.com/license" target="_blank">LGPL</a></span></td>
                        <td>官方网址：<span><a href="http://www.dmcms.com.cn" target="_blank">www.dmcms.com.cn</a></span></td>
                        <td>讨论社区：<span><a href="http://www.dmcms.com.cn" target="_blank">www.dmcms.com.cn</a></span></td>
                    </tr>
                </table>
            </div>
            <div class="site">
                <table class="producttable">
                    <tr>
                        <td>文档总数：<span><%=DreamCMS.BLL.StatisticManager.GetStatisticInfo().PostCounts %></span></td>
                        <td>栏目总数：<span><%=DreamCMS.BLL.CategoryManager.GetCategoryList().Count %></span></td>
                        <td>会员总数：<span><%=DreamCMS.BLL.UserManager.GetUsers().Count %></span></td>
                    </tr>
                    <tr>
                        <td>标签数量：<span><%=DreamCMS.BLL.TagManager.GetTagList().Count %></span></td>
                        <td>总访问量：<span><%=DreamCMS.BLL.StatisticManager.GetStatisticInfo().VisitCounts %>次</span></td>
                        <td>登录IP：<span><%=UserIP %></span></td>
                    </tr>
                </table>
            </div>
            <div class="server">
                <div class="serverinfo">
                    <table class="producttable">
                        <tr style="border-bottom: none;">
                            <td>服务器IP：<span><%=ServerIP %></span></td>
                            <td>.net版本：<span><%=NETVersion %></span></td>
                            <td>IIS版本：<span><%=IISVersion %></span></td>
                        </tr>
                        <tr>
                            <td>
                                绑定域名：<span><a href="<%=DreamCMS.WebCore.Common.RequestHelper.SiteUrl %>"><%=DreamCMS.WebCore.Common.RequestHelper.SiteHostName %></a></span>
                            </td>
                            <td colspan="2">
                                附件信息：<span><%=UpfilePath %> (共<%=UpfileCount%> 个, <%=UpfileSize%>)</span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">操作系统：<span><%=OSVersion %></span></td>
                        </tr>
                        <tr>
                            <td colspan="3">服务器CPU：<span><%=CPUInfo %></span></td>
                        </tr>
                        <tr>
                            <td colspan="3">内存占用：<span><%=MemoryInfo %></span></td>
                        </tr>
                        <tr>
                            <td colspan="3">站点目录：<span><%=Request.PhysicalApplicationPath %></span></td>
                        </tr>
                        <tr>
                            <td colspan="3">数据库信息：<span><%=DbInfo %></span></td>
                        </tr>
                    </table>
                </div>
                <div>
                    <div class="clearcache pullleft">
                        <h3>系统缓存更新</h3>
                        <div>
                            <p>注意：此操作用于更新服务器内存中的数据缓存，可解决更新与显示不同步问题。</p>
                            <p>
                                <asp:LinkButton ID="clearCache" CssClass="btnbeauty" runat="server" OnClick="clearCache_Click">
                                    立即更新
                                </asp:LinkButton>
                            </p>
                        </div>
                    </div>
                    <div class="quick pullright">
                        <h3>快捷操作</h3>
                        <div><a class="btnbeauty" href="#">检查更新</a><a class="btnbeauty" href="">主题管理</a><a class="btnbeauty" href="#">插件管理</a><a class="btnbeauty" href="#">广告管理</a></div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
